package cn.edu.zafu.bigdata.x.wupeng.a;

public class MyDate {
    private int year;
    private int month;
    private int day;

    public MyDate(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }
    public void setDate(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }
    public String toString() {
        return year + "年" + month + "月" + day + "日";
    }
    public String nextDay() {
        return "下一个日期是：" + year + "年" + month + "月" + (day-1) + "日";
    }
}
